#include "N2View.h"


N1NAME_DEF(N2View)

N2View::N2View() : m_parentView(NULL), m_window(NULL)
{
}

N2View::~N2View()
{
}

N2Size N2View::getSize() const 
{
    return m_rect.size();
}

N2Rect N2View::getRect() const 
{
    return m_rect;
}

N2View* N2View::getParent() const
{
    return m_parentView;
}

void N2View::setWindow(N2Window* wnd)
{
    m_window = wnd;
}

N2Window* N2View::getWindow() const 
{
    return m_window;
}

bool N2View::isVisible() const 
{
    return false;
}

void N2View::setVisible(bool v)
{
}

N1Array*  N2View::getSubviews() const 
{
    return NULL;
}

void N2View::addSubview(N2View* view)
{
    m_subviews.add(view);
}

void N2View::draw(N2Drawer* drawer)
{
}
